home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / OpenDoc 1.2b2c1 / OpenDoc / Interfaces / C / PfTypLs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-13  |  8.3 KB  |  261 lines  |  [TEXT/MPS ]

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: PfTypLs.h.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: 2.18
  7.  *     SOM Emitter emith.dll: 2.33
  8.  */
  9.  
  10. /*
  11.  * 
  12.  *  Classes defined in this interface
  13.  * 
  14.  */
  15.  
  16.  
  17. #ifndef SOM_ODPlatformTypeList_h
  18. #define SOM_ODPlatformTypeList_h
  19.  
  20.  
  21. #include <som.h>
  22.  
  23. /*
  24.  * -- This emitter treats Method Tokens as Thunks by default.
  25.  * -- Use the sc modifier "nothunks" to change this default
  26.  */
  27. #undef somresolve_
  28. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  29.  
  30. /*
  31.  * Define the class name as an object type
  32.  */
  33. #ifndef ODPlatformTypeList
  34. #define ODPlatformTypeList SOMObject
  35. #endif
  36. #include <ODObject.h>
  37.  
  38. /*
  39.  * Start of user-defined types:
  40.  */
  41. #ifndef SOMClass
  42.     #define SOMClass SOMObject
  43. #endif /* SOMClass */
  44. #ifndef SOMObject
  45.     #define SOMObject SOMObject
  46. #endif /* SOMObject */
  47. #ifndef ODFrame
  48.     #define ODFrame SOMObject
  49. #endif /* ODFrame */
  50. #ifndef ODFacet
  51.     #define ODFacet SOMObject
  52. #endif /* ODFacet */
  53. #ifndef ODObject
  54.     #define ODObject SOMObject
  55. #endif /* ODObject */
  56. #ifndef ODExtension
  57.     #define ODExtension SOMObject
  58. #endif /* ODExtension */
  59. #ifndef ODPlatformTypeList
  60.     #define ODPlatformTypeList SOMObject
  61. #endif /* ODPlatformTypeList */
  62. #ifndef ODPlatformTypeListIterator
  63.     #define ODPlatformTypeListIterator SOMObject
  64. #endif /* ODPlatformTypeListIterator */
  65.  
  66. /*
  67.  * End of user-defined types.
  68.  */
  69.  
  70. #define ODPlatformTypeList_MajorVersion 1
  71. #define ODPlatformTypeList_MinorVersion 0
  72.  
  73. /*
  74.  * External name shortening if required
  75.  */
  76. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  77. #define ODPlatformTypeListClassData d
  78. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  79. /*--------------Migration------------*/
  80.  
  81. #ifdef OLDIBMSOMAPISUPPORT
  82. #define ODPlatformTypeList_classObj somNewClassReference(ODPlatformTypeList)
  83. #define _ODPlatformTypeList ODPlatformTypeList_classObj
  84. #define ODPlatformTypeListCClassData ODPlatformTypeListClassData
  85. #define ODPlatformTypeListNewClass(major,minor) somNewVersionedClassReference(ODPlatformTypeList,major,minor)
  86. #endif
  87.  
  88. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  89. #define ODPlatformTypeListMetaClass SOMClass
  90.  
  91. #if PRAGMA_ALIGN_SUPPORTED
  92. #  pragma options align=power
  93. #endif
  94.  
  95. /*
  96.  * Declare the class data structure
  97.  */
  98. SOMEXTERN struct ODPlatformTypeListClassDataStructure {
  99. #ifdef OLDIBMSOMAPISUPPORT
  100.     SOMAny            *classObject;    /* always zero, use somNewClassReference instead */
  101. #else
  102.     long zero;
  103. #endif
  104.     somStaticClassInfo *sci;
  105.     somDToken        instanceDataToken;
  106.     long reserved [3];
  107.     somMToken AddLast;
  108.     somMToken Remove;
  109.     somMToken Contains;
  110.     somMToken Count;
  111.     somMToken CreatePlatformTypeListIterator;
  112.     somMToken reserved1;
  113.     somMToken reserved2;
  114. } SOMDLINK ODPlatformTypeListClassData;
  115.  
  116. #if PRAGMA_ALIGN_SUPPORTED
  117. #  pragma options align=reset
  118. #endif
  119.  
  120. #if !defined(ODPlatformTypeList_Class_Source) && !defined(SOM_Module_pftypls_Source)
  121. #if PRAGMA_IMPORT_SUPPORTED
  122. #pragma import list ODPlatformTypeListClassData
  123. #endif
  124. #endif
  125.  
  126.  
  127. /*
  128.  * New macro for ODPlatformTypeList
  129.  */
  130. #define ODPlatformTypeListNew() somNewObject(ODPlatformTypeList)
  131.  
  132. /*
  133.  * Override method: somUninit
  134.  */
  135. #define ODPlatformTypeList_somUninit(somSelf) \
  136.     SOMObject_somUninit(somSelf)
  137.  
  138. /*
  139.  * New Method: AddLast
  140.  */
  141. typedef void   (SOMLINK *somTD_ODPlatformTypeList_AddLast)(ODPlatformTypeList *somSelf, Environment *ev,
  142.         ODPlatformType type);
  143. #define somMD_ODPlatformTypeList_AddLast "::ODPlatformTypeList::AddLast"
  144. #define ODPlatformTypeList_AddLast(somSelf,ev,type) \
  145.     (SOM_Resolve(somSelf, ODPlatformTypeList, AddLast) \
  146.     (somSelf,ev,type))
  147. #ifndef SOMGD_AddLast
  148.     #if (defined(_AddLast) || defined(__AddLast))
  149.         #undef _AddLast
  150.         #undef __AddLast
  151.         #define SOMGD_AddLast 1
  152.     #else
  153.         #define _AddLast ODPlatformTypeList_AddLast
  154.     #endif /* _AddLast */
  155. #endif /* SOMGD_AddLast */
  156.  
  157. /*
  158.  * New Method: Remove
  159.  */
  160. typedef void   (SOMLINK *somTD_ODPlatformTypeList_Remove)(ODPlatformTypeList *somSelf, Environment *ev,
  161.         ODPlatformType type);
  162. #define somMD_ODPlatformTypeList_Remove "::ODPlatformTypeList::Remove"
  163. #define ODPlatformTypeList_Remove(somSelf,ev,type) \
  164.     (SOM_Resolve(somSelf, ODPlatformTypeList, Remove) \
  165.     (somSelf,ev,type))
  166. #ifndef SOMGD_Remove
  167.     #if (defined(_Remove) || defined(__Remove))
  168.         #undef _Remove
  169.         #undef __Remove
  170.         #define SOMGD_Remove 1
  171.     #else
  172.         #define _Remove ODPlatformTypeList_Remove
  173.     #endif /* _Remove */
  174. #endif /* SOMGD_Remove */
  175.  
  176. /*
  177.  * New Method: Contains
  178.  */
  179. typedef ODBoolean   (SOMLINK *somTD_ODPlatformTypeList_Contains)(ODPlatformTypeList *somSelf, Environment *ev,
  180.         ODPlatformType type);
  181. #define somMD_ODPlatformTypeList_Contains "::ODPlatformTypeList::Contains"
  182. #define ODPlatformTypeList_Contains(somSelf,ev,type) \
  183.     (SOM_Resolve(somSelf, ODPlatformTypeList, Contains) \
  184.     (somSelf,ev,type))
  185. #ifndef SOMGD_Contains
  186.     #if (defined(_Contains) || defined(__Contains))
  187.         #undef _Contains
  188.         #undef __Contains
  189.         #define SOMGD_Contains 1
  190.     #else
  191.         #define _Contains ODPlatformTypeList_Contains
  192.     #endif /* _Contains */
  193. #endif /* SOMGD_Contains */
  194.  
  195. /*
  196.  * New Method: Count
  197.  */
  198. typedef ODULong   (SOMLINK *somTD_ODPlatformTypeList_Count)(ODPlatformTypeList *somSelf, Environment *ev);
  199. #define somMD_ODPlatformTypeList_Count "::ODPlatformTypeList::Count"
  200. #define ODPlatformTypeList_Count(somSelf,ev) \
  201.     (SOM_Resolve(somSelf, ODPlatformTypeList, Count) \
  202.     (somSelf,ev))
  203. #ifndef SOMGD_Count
  204.     #if (defined(_Count) || defined(__Count))
  205.         #undef _Count
  206.         #undef __Count
  207.         #define SOMGD_Count 1
  208.     #else
  209.         #define _Count ODPlatformTypeList_Count
  210.     #endif /* _Count */
  211. #endif /* SOMGD_Count */
  212.  
  213. /*
  214.  * New Method: CreatePlatformTypeListIterator
  215.  */
  216. typedef ODPlatformTypeListIterator*   (SOMLINK *somTD_ODPlatformTypeList_CreatePlatformTypeListIterator)(ODPlatformTypeList *somSelf, Environment *ev);
  217. #define somMD_ODPlatformTypeList_CreatePlatformTypeListIterator "::ODPlatformTypeList::CreatePlatformTypeListIterator"
  218. #define ODPlatformTypeList_CreatePlatformTypeListIterator(somSelf,ev) \
  219.     (SOM_Resolve(somSelf, ODPlatformTypeList, CreatePlatformTypeListIterator) \
  220.     (somSelf,ev))
  221. #ifndef SOMGD_CreatePlatformTypeListIterator
  222.     #if (defined(_CreatePlatformTypeListIterator) || defined(__CreatePlatformTypeListIterator))
  223.         #undef _CreatePlatformTypeListIterator
  224.         #undef __CreatePlatformTypeListIterator
  225.         #define SOMGD_CreatePlatformTypeListIterator 1
  226.     #else
  227.         #define _CreatePlatformTypeListIterator ODPlatformTypeList_CreatePlatformTypeListIterator
  228.     #endif /* _CreatePlatformTypeListIterator */
  229. #endif /* SOMGD_CreatePlatformTypeListIterator */
  230. #ifndef SOM_DONT_USE_INHERITED_MACROS
  231. #define ODPlatformTypeList_InitObject ODObject_InitObject
  232. #define ODPlatformTypeList_HasExtension ODObject_HasExtension
  233. #define ODPlatformTypeList_AcquireExtension ODObject_AcquireExtension
  234. #define ODPlatformTypeList_ReleaseExtension ODObject_ReleaseExtension
  235. #define ODPlatformTypeList_Purge ODObject_Purge
  236. #define ODPlatformTypeList_IsEqualTo ODObject_IsEqualTo
  237. #define ODPlatformTypeList_SubClassResponsibility ODObject_SubClassResponsibility
  238. #define ODPlatformTypeList_somInit SOMObject_somInit
  239. #define ODPlatformTypeList_somInit SOMObject_somInit
  240. #define ODPlatformTypeList_somDuplicateReference SOMObject_somDuplicateReference
  241. #define ODPlatformTypeList_somCompareReference SOMObject_somCompareReference
  242. #define ODPlatformTypeList_somRelease SOMObject_somRelease
  243. #define ODPlatformTypeList_somFree SOMObject_somFree
  244. #define ODPlatformTypeList_somCanDelete SOMObject_somCanDelete
  245. #define ODPlatformTypeList_somGetClass SOMObject_somGetClass
  246. #define ODPlatformTypeList_somGetClassName SOMObject_somGetClassName
  247. #define ODPlatformTypeList_somGetSize SOMObject_somGetSize
  248. #define ODPlatformTypeList_somIsA SOMObject_somIsA
  249. #define ODPlatformTypeList_somRespondsTo SOMObject_somRespondsTo
  250. #define ODPlatformTypeList_somIsInstanceOf SOMObject_somIsInstanceOf
  251. #define ODPlatformTypeList_somDispatch SOMObject_somDispatch
  252. #define ODPlatformTypeList_somClassDispatch SOMObject_somClassDispatch
  253. #define ODPlatformTypeList_somCastObj SOMObject_somCastObj
  254. #define ODPlatformTypeList_somResetObj SOMObject_somResetObj
  255. #define ODPlatformTypeList_somPrintSelf SOMObject_somPrintSelf
  256. #define ODPlatformTypeList_somDumpSelf SOMObject_somDumpSelf
  257. #define ODPlatformTypeList_somDumpSelfInt SOMObject_somDumpSelfInt
  258. #endif /* SOM_DONT_USE_INHERITED_MACROS */
  259.  
  260. #endif       /* SOM_ODPlatformTypeList_h */
  261.